package com.trainoo.configclient.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: zt
 * @Date: 2019/12/3 17:09
 * @Description:
 */
@RestController
public class ConfigController {

    @Value("${test}")
    String test;

    @GetMapping("/getTest")
    public String getTest(){
        System.out.println(test);
        return test;
    }
}
